package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.dto.TicketsDetailsDTO;
import com.woniuxy.mesboot.entity.MesTicketdetail;
import com.woniuxy.mesboot.mapper.MesTicketdetailMapper;
import com.woniuxy.mesboot.service.TicketsDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : 黑川
 * @version : 1.0
 * @Project : mes-boot
 * @Package : com.woniuxy.mesboot.service.impl
 * @ClassName : .java
 * @createTime : 2023/5/23 19:44
 * @Description :
 */
@Service
public class TicketsDetailServiceImpl implements TicketsDetailService {
    @Resource
    private MesTicketdetailMapper ticketdetailMapper;
    @Override
    public List<MesTicketdetail> selectAll() {
        return ticketdetailMapper.selectAll();
    }

    @Override
    public int deleteByTId(Integer ticketId) {
        return ticketdetailMapper.deleteByTId(ticketId);
    }

    @Override
    public int insert(MesTicketdetail record) {
        return ticketdetailMapper.insert(record);
    }

    @Override
    public int insertSelective(TicketsDetailsDTO detailsDTO) {
        return ticketdetailMapper.insertSelective(detailsDTO);
    }

    @Override
    public MesTicketdetail selectByPrimaryKey(Long id) {
        return ticketdetailMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesTicketdetail record) {
        return ticketdetailMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesTicketdetail record) {
        return ticketdetailMapper.updateByPrimaryKey(record);
    }
}
